package com.service.setting;

import com.comm.R;
import com.comm.vo.JsonResult;
import com.entity.Employee;

import javax.servlet.http.HttpServletResponse;


public interface SysEmployeeService {


    R login(String userName, String password, HttpServletResponse response);

    R getEmpByUserName(String userName);

    //根据姓名查询用户信息
    R findEmpByName(String emp_name);

    //根据员工Id禁用员工信息
    R stopEmpById(Integer id);

    //根据员工Id启用员工
    R startEmpById(Integer id);


    R initMenuByEmpId(Integer empId);

    //已禁用人数按钮
    JsonResult findEmpStopNum();

    //分页查询所有员工信息
    JsonResult findEmpList(Integer currentPage,Integer pageSize);


    //添加员工信息
    R addEmp(Employee employee);

    //编辑员工信息
    R updateEmp(Employee employee);


}
